<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>盒子的默认内边距</title>
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			#d1{
				height: 500px;
				width: 500px;
				border: 2px solid red;
				padding: 40px;/*对d1内部元素和d1边缘之间的距离*/
			}
			#d1 ul{
				border: 1px solid red;
			}
			#d1 img{
				border: 1px solid blue;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<ul>
				<li>茄子</li>
			</ul>
			<img src="../image/book-03.jpg"/>
		</div>
	</body>
</html>